package com.xw.comm.entity;

import lombok.Data;

/**
 * 公共返回参数类
 * @author xiongwei_vendor
 * @date 2020/11/4 17:59
 */
@Data
public class Response<T> {

    private int code;
    private String message;
    private T data;

    public Response() {
    }

    public Response(int code) {
        this.code = code;
    }

    public Response(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public Response(int code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }


}
